export default class MaoRandom{

    seed = 5;
    //Math.seed = 5;
    
    seededRandom(max=1, min=0):number{
        max = max || 1; 
        min = min || 0; 
        this.seed = (this.seed * 9301 + 49297) % 233280; 
        var rnd = this.seed / 233280.0; 
        return min + rnd * (max - min);
        // for (var i= 0; i<10; i++) 
        // { document.writeln(Math.seededRandom() +"<br />"); 
    }
}